#ifndef PLAYER_VS_PLAYER_HPP
#define PLAYER_VS_PLAYER_HPP

#include "game.hpp"

namespace gomoku{

    class player_vs_player:public game{
        private:
            
        public:
            player_vs_player(int height, int width);
            player_vs_player(int height, int width,int init_status, point_status *init_layout);
            static std::vector<pattern> winning_patterns_black; // 如果出现这些特征，则黑方获胜
            static std::vector<pattern> winning_patterns_white; // 如果出现这些特征，则白方获胜
            virtual inline int game_mode() const{
                return 1;
            }
            virtual bool do_operation(point position);
            virtual player winner() const;
            virtual bool undo_operation();
    };

}

#endif